package com.yingjia.yingjiauniversity.json.jackson;


import com.fasterxml.jackson.databind.BeanDescription;
import com.fasterxml.jackson.databind.SerializationConfig;
import com.fasterxml.jackson.databind.cfg.SerializerFactoryConfig;
import com.fasterxml.jackson.databind.ser.BeanSerializerFactory;

/**
 * Copyright:   Copyright(C) 2010-2015 KEDACOM LTD.
 * Project:     android-base
 * Module:      TODO
 * Description: TODO
 * Author:      guoxiangxun
 * Createdate:  2015/05/06 2:02 PM
 * Version:     V0.1
 * History:
 * #       Modified By guoxiangxun on 2015/05/06 Comment: created.
 */
public class BidBeanSerializerFactory extends BeanSerializerFactory {


    /**
     * Constructor for creating instances with specified configuration.
     *
     * @param config
     */
    protected BidBeanSerializerFactory(SerializerFactoryConfig config) {
        super(config);
    }

    @Override
    protected Object findFilterId(SerializationConfig config, BeanDescription beanDesc) {
        return getFilterId();
    }

    public final static BidBeanSerializerFactory instance = new BidBeanSerializerFactory(null);

    private Object filterId;

    public Object getFilterId() {
        return filterId;
    }


    public void setFilterId(Object filterId) {
        this.filterId = filterId;
    }
}
